Fixed bug in download layer