fix chunk check