bug fix
fix in endreMote