fixed empty upload