Adding error catching for kmaps raw missing