fixed bug writing ra to scat