Fixed a 'readonly' bug.