fixed fatal bug introduced in last update