Hi,
Try replacing the starttimer code with the following instead:
	Code:
	viz.starttimer(FREEZE_AVATAR,male.getduration(7)-0.1)
 This will create a buffer zone to ensure the avatar is frozen before the animation fully completes. It should also work with your animation too.