fixed missing judgment lines