ajax doesn't work is duration_string is nil, raised error