Attempt to fix measure_text