fix maintaining of scroll