Original state reverting, locked layer detection