fixed bug in generated evolution sql