fix a return that should be an exit