fix upload problems