Fix bug in naming of objects obs and pred