fix_following

Fix a bug when generate data and log in, the following relation has not
been set up properly, so add a branch just in case of something goes
wrong there.