fixed issue of scan serial id not increment