Fix inexpected return value