Fix promise returning in reply handling.