Fixed the history to take into account the layer the change was on.