fixed bug in deallocSTO