Fixed AMD loading.
Merge pull request #257 from domachine/master

Fix AMD loading