fixed a bug in project.poll function, problem with dicts