Fixed a bug in quad_ou