fixed rolling error
fixed rolling error