fixup demented version