upload_category fix