fix error for getting current and next value from oracle sequences