Fix ML rigid body modes code for FMDB.