fix scroll handler