MLE fix. Fixed #496