correct cursor detection in obcj