Fix issues when opening project