Fixed writeline in wrong place