fix calculation of size, when dealing with big file ranges