fix on deprecated function call for merge functionality