fixed bug for cloudfoundry