Fixed bug in merged function