public void resetLastExecutes(int count) {
		Command command;
		for (int i = getMin(history.size(), count); i > 0; i--) {
			command = history.get(history.size() - 1);
			command.undo();
			history.remove(command);
		}
	}