Re-fixed bugs in the clone and remove methods.