opt may be undefined

opt may be undefined