Set modified flag when setting length