fix map relationship to layer on layer remove