fix dependency bug and str/bool bug