Fix bug in Directory fixmat factory