Thesis math expresions fix