Add cursor wait
Merge pull request #1015 from geoadmin/fix_993

Add cursor wait