Clean up local matrix major