fix to sqlite