fixing minor bugs with text filling