Fixed API installation procedure

Change-Id: I646ca96d8f6afca77c2f48baaaa1847f605d4ca2