Fixed deprecated call