Fixing order of operations in setGetParam