Fixed several getProject() method bugs