corrected bug when last msg line didnt break before painting