fixes mod ensugaring for class parameters