remove() bug fixed