fix layers editor issues