Fixed BadArgumentError on editing styles