fixed bugs in layer order panel