increase robustness on invalid params