Similar fix for Armadillo matrices