fixed limit, offset bug