[FIX]Checked whether mode is not readonly and  is available then and only then set dimension.