Fix AMD loader

This addresses a bug in #19. I was aware of the bug but apparently hadn't pushed the latest update. My apologies!