fixed bugs in style editor