Fix range expansion in mcmd