Fixed the parameter value being returned logic