before cleaning
fix last opened
fix bug