fix a AMD loading bug