minor optiql bug fixes