Fixed a bug if there is no logged on project