bug: Selected template wasn't saved. Fixed.