bug fix.

real time recommendation fails if attributes is unseen.