Changed domain error to overflow error