Fixed statements in omapi module