fixed create SQL bug