State load bugfixes for positions and tabs

Closes #221