Bugfix for custom merchant fields merchant id

change method current merchant is detected