fix bug when current-project is initialized