fix out of bounds exception for duration of 0.0f