fixing mistakes in exception message