Fix in SQL script