fixing a hidden sqlite ref