fix undefined index error on user cache page