strange effect



> Here is a function of function who works correctly:

Try making the variable "r" local.