fixed calculation of scrollPart