bugfixed title generation