Fixed problem with placing diagram labels