fixing typos in chunk implementation