fix unreachable statement