fixed error in duration checkbox not working for sensor collector