little fix for upload