Fixing project 1 bugs.