Bug fix and compilation check for PDBTrajectory