Fixed not defined error