fix a syntax bug in migrate file