Fixed a bug related with SQLite