bug sqlite fix