Fix for SQL reservation