Fixed accessing some variables in extension