Fixed duplicated error messages