fix some deploy issues