fixed unreachable code