prevent errors when no params are defined.