bug fix: variable mismatch