Corrected WriteLn bug