finally fixed the home template bug