Fixed bugs. Working OD correction