Fixing cursor cookie code.