Variables incorrectly passed