fixed fatal code