Bugfix - work documents stored with invalid tab indexes