Fixed bug with upload controller