fixed wrong template was saved with objects