fix validate, if param is not hashref