fix apm install