fix scroll bug for ruby