fix for dynamic widget templates