Fixed notice in define handler