Fixed seeking not working for some files. Closes #36.