fixed before_filter check_hash