Fixes return value when an unknown operation is requested