fix an issue where it would crash if there was a non-existant coin