fixed safari layer sorting bug