small fixes to parameter scan parts of the code