Fix broken params.
Add test case for #1366
Merge pull request #1378 from namusyaka/fix-broken-params

Fix broken paramsб closes #1366