Fix line endings
Fix window positioning code