Fixed the bug with merge script