fixed broken variable reference