fix small issue with parameter parsing