fixing call of cursor() instead of cursor