Fixed a bug with data downloading