[FIX] cope with duration==null