Fix bug in mcata