Fix export bar without opened diagram