Fixed bug where title wasnt being set properly