Fix bug in MTZ