fix offset / count