fixed bug on selecting hardware for a project. added regression test