Fixed some deprication error messages