Fix window right boundary time larger than audio file max time