Fixed bug where removing last entry would crash app