API compatibility fix.