fixed bug caused by accessors not being updated