fix loss with L1 prior