Fixing bug of undefined O