fixed severe model/residual plotting error!