Fixed restore project bug