Fails when prediction fails.