fix dependency bug