fix search and allow_pass() errors