Fixed a number of bugs with Madmin commands