Fix double download bug