Fixed bug with AMD module instantiation

Signed-off-by: Nicholas Jackson <nic@thatlondon.com>