fix throwing validate exception