fix migrate scripts