fix the type checks on Command