fix bug when not defined user