fixed var dump issue in api migration