fix server side error with showing the right template