fixed modal scroll behavior (fixes #150, fixes #185, fixes #193)