Fixes another long-SQL problem