err check fix