bugfixes in data (format and dataType) and references (template)