Fix disabling upload button.