Fix divide by zero bug (when file size == 0)