fix for upload problem