Fix bug where we were not saving threshold values in expression editor

Change-Id: Iebaea12e0af419c873bc7d7f298f16f4c33e7028