fixed overflow for gmm log_pdf