fix bugs text element