upload button bug fix