fix migrate command