R logs and prediction columns fix