Fixed bug "is not defined"