Fix recommendations parsing logic