Workaround for api bug.