fixed last case issue (user undefined)