Method not deprecated correctly