Fix infinite loop. Go to next attribute

Just fixing a infinite loop.