fixed bug: there was an error when EM doesn't converge