uploads dir bugfix