bug #9 - register was not allocated for function-in-function