Fix for SQL compiler