Derp. Fixed nasty recursion bug.

Signed-off-by: robhol <email@robhol.net>