reset patch before build