merge objects bug fix