Fixed stupid bug with edit checking