Unreachable Code detected fix

Unreachable Code detected fix