Fixed a bug in the osar calculation and added index osar correctly