fix sqlite bug3