fixed invalid else