Handle invalid coords better.