fixed fatal error as a result of copy/paste programming