fix sqlite issue