Fixed bug in reading Gromacs frames.