fixed time bug for probability