Remove dup leading when reverting a layout