Fix project dirty state