Bugfixes on the isAPIAlive