bugfix for upload templates