fixed bug in method that writes to formatted positions tab.