[FIX] wrong variables used