Correcting bug, setting error message when origin isn't set