fixed bug in osa computation