fixing logic error.  Need to check whether duration is blank for bots.