fixed bug in downloading bulk data