Fixed issue with local variable.