Fixing issue with setting template when creating component