fixed sref to call update rather than apply which caused incorretc evaluation of value.