Fixing AMD wrapper for Pinny