Fixes missing return value