bug fix mode_chek