bug: Used wrong var