fix error occurs when click cell in select mode