Fixing code to return lists of projects