fix checking patch