Fixed unexpected seek when (by == 0)