Fix limiting offset