fixed fatal error