render titles correctly