layers editor fix