fixed squlite error