fix the same layer id problem