fix layer change on center change