Use correct varaible for value when constructing report parameters