Setting the title correctly