Fixed api call in Snow Leopard