Passed variable incorrectly