Resolv themplate error