fixed sqlite error