Too many empty lines on the top of output