Fix the loop error method

casted to NSOBJECT
Fix the loop error method

casted in NSOjbect
Merge pull request #1 from polipo/master

Fix infinite loops