Fix compile error from core changes.