fix diagram labels