adjusted missing return for fix #6263