Fixed some cursor insertion bugs
-Also fixed cursor insertion problem if solved==true