fixes variable name error