Fixing nil result block issue