bug fix in prog upload