fix issues with uploads