fixed readonly obect issue