message handler was being registered twice