fixed diagram publishing

Fix for the diagram publishing, this time without unneccessary dependencies