corrected bugs in merge and recommendations