fixed double error message