fix append flag
fix append flag