fix recursive loop for bad prereq dec