Fixed the check to know whether a SID object must be hidden or not