Fixed logic error concerning og_array