Fixed usage of wrong variables