Fix bug on upload button.