Bugfix. Handle case where pass_check is undefined.