Patch for consolidate.js bug