Fixed deprecated call.