In LiteC, flags = visible has changed to flags2 = VISIBLE.