Correct theme changing in runtime