Fixed the bug that merge is not got called