fixed user view undefined error