Fixed bug in Remove.