Fix minor bug. Currently breaking test suite