Fixing electives bug.