fix Expand.js bug