Fix a bug in #apply at the expense of DRYness.