fixed text frame calc to not overflow