Fixed mistaken calculation.
Try downloading without credentials if with credentials fails.