Hi, I'm implementing the equal rick contribution version of the risk parity strategy as described here: 


In the backtest I'm seeing that the weights of some assets would abruptly change to zero, remain zero for multiple days, and then change back to a positive number between 0 and 1. I've tried to impose a penalty to prevent abrupt weight changes in the objective function, but it didn't help. Any idea on what could be the issue?