fixing bug with retrieving dynamic parameter value