return nil in the unreachable path

this is to close my issue