Fix bug in active, close, archive project

fix #118