fix readonly issue