Fixed duplicate error message