Fixed statement cache leak