Improve Atrac id generating and fix crash.
Merge pull request #2167 from oioitff/atrac-fix

Improve Atrac id generating and fix crash.