Fix some bugs in theme positions when updated