fix upload error
fix nil