Fixed random deadlock in btnSaveProject_Click