fix if undefined user