fixed another bug in endreMote