Fixed a missing return value