Fixed accessing bug