Fixing the amd require