fix hiding row when state has not been changed