Fixed exception triggered by edge placed out of workspace bounds