fix ambari-functions