fix for unreachable code