Fixed error with case sensitive variable names