protect cursor
Not sure why this is needed but apparently it is