Fixed bug updating threshold lines