Fix error when !patting