FIX pad_matrix: pad_value now actually used