Return valid params. Fixes #1057.