Use a constant for number of cursors.
Fix compiler warning