fixed error in merge py