Fix bug in parsePage

should put merge file inside the forEach scope....