minor bugs regarding scolling, margin, nohistory, etc.