Hopefully this fixes that valueOf looping problem