Bugfix. Man I should really have tests.