fixed undefined variable error
[completed: 131]