Fixed incorrect InvalidParameter constructor call