fixed validate plugin error