V0.2.0: added safety checks for invisibility (fixes bug with new item).