Fix passing undefined