Fix bug in decode paramter

User input can be malform