Fixed cursor fetching.