occasion undifined bug fix