fixed readonly issue