Fixed the upload problem of Leonard.