fix cursor size when duration changed