fix a problem with delete idea