bug in cursor use