fixing bug - error while following is null