fix errores in chekingElement method