fixed simple bug testing uncovered