Fixed bug when there is no text as title or footer