fixed crash in unreproducible bug
disallow undo when level is complete