Fixed some deprecation messages