Fixed a crash with remove ident