Fix wrong AMD construct. Fixes #25