fixed error with NO_HAT