Bug Fixed for option creation

Bug fixed:
Duplicate option
Query time
cursorwindow windows is full