Fixed messages layout and lines counter