Fix readonly toggle bug
Merge pull request #2 from carlos-ghan/master

Fix readonly toggle bug