Fixes tp2.m