BUG:fix a bug of check repition
ENH:add show error message when export