closes issue #286 (about nans when l1_ratio = 0)