fixed problem of merging file causing some statements got removed