Fixed some upload problems