One more time to fix SQL bug.