Fixed possible cash in undo window - thx Siegwarth :)