fixed callback for functionality with ripple emulator