fix checkbox gets hidden when there is an error