Fixed bug with upload directory