fix scroll bugs