fixed non existing project open
checking if project and branch really exists in case of changes...