fix append order problem