fix draw o routine