Fixed SQLite issue