Corrrected compute_xrd LP check