fix dependency bugs