fixed stupid units related bug