bug fix uploads