Fix auto upload bug.