work on intervention duration bug