General bug fixing

a download bug fix and a project bugfix