Correctly implemented sparse penalty