fixes a little bug when a compile error doesn't return a location