Fix (add) invalid session detection.