This also works but has different currsor behavior. Original fix left in place, commented pending decisions.