Fix for upload