Fixed the bug which displayed only 1 line