fixed readonly problem