fixed a bug: umecob goes ajax if template is empty