Fix dirty detection on saved projects