Fix schema table conditional