fixed redirecting after upload