Workaround for fences.