Fix Windows alignment and scroll bugs