Fixed stupid bug from refactor