Fixing a bug my refactoring of preset js caused.