fix home screen issue in my custom template.