Fix for uploads