fixed bug in cursor save and restore code
fixed parser when equals are used in different settings