last fixes for table cursor positioning