Fix bug in datasource template