fix some error on patch