fixed looping deps bug