fixing merge, preserving points order