Fixed bug when merge was empty in if.