fix a error on edit & wiew mode