Fixed bug where local variable was hiding function with same name.