fix for probability prediction