Fixed AMD dependency issue.