Fixes some broken SQL at the Behavior