cursor fixes and fix the hash generator