[Bug]: Fixed typo in views for downloads and added better error handling