fixing minor issue with calling replyFunc