fixed bug when looking up attribute on AccessDict