Fixed cursor issue on oracle