update flag
fix patch error