Fixed error caused by leftover this in fetchTemplate's failure