hack from @Retriman to fix totem LoS, issue #5908