Fixed #972.
Fixed bug where a function and a variable have the same name in the same scope.