fixed race condition where message was being ack-ed before ready to
receive