Fixed download bug