fix open/close entry bug.