Fixed bug (#165) that caused that html template caching did not work properly.