modify magi command
fix error about regex