avoids undesirable scroll behavior