fix empty case, yay for unit tests