solve wrong order problem when adding