fix identity check