Fix project change bug