Fixed issue where child templates were being cached