bugfix: sqlite had closed