Try editing it in a different screen or tab after you get the trainer to read the value.
I have the same issue. Trainer is changing cash in inventory which you can only buy one item - after that cash is negative. I think trainer is changing wrong address.
If you can manage to change another address there is no any problem at all (checked with CheatEngine).