Fixed an issue with the title of a layer not working