fix valid issue