Fixed uploadcontroller bug