Fixed mvc.class issue where isReadOnly gives incorrect data