fixed the visibility object