Fixed passing two instance variables to controller