fixed a crash bug, fixed text chop off in pop out