fix errors messages