Fixed comparison of uploaded chunks