fixed merging of avalable templates