Fix error on remove.