fix "double &" arrays