fix sqlite fail