bugfix for get NEXTVAL