Fixed edit.js bug when series is unavailable