fit table position storage
set default table position to -999 in case unknown
Merge branch 'master' of github.com:ShashlikTB/T1041 into testing