fix missing return value