Fixed a bug with remove thing