Attempt workaround for fog issue #5384