fix missing return error