diff --git a/js/style-select.js b/js/style-select.js
index ac17c7ce..33c1308b 100644
--- a/js/style-select.js
+++ b/js/style-select.js
@@ -19,11 +19,12 @@ onready(function(){
var i = 1;
stylesDiv.children().each(function() {
- stylesSelect.append(
- $('')
- .text(this.innerText.replace(/(^\[|\]$)/g, ''))
- .val(i)
- );
+ var opt = $('')
+ .text(this.innerText.replace(/(^\[|\]$)/g, ''))
+ .val(i);
+ if ($(this).hasClass('selected'))
+ opt.attr('selected', true);
+ stylesSelect.append(opt);
$(this).attr('id', 'style-select-' + i);
i++;
});