fixes for multi-line text positioning