fix for upload detection