fixed accessor bug