fix errors on working with templates stored in settings storage