fixed an error passed validator