fix wrong typed text length, change to add new line