Fixed duration bug (use attr not audio duration)