fix the error on cloudfoundry