Fixed undefinded variable