bugfix: upload template overwrite function