Avoiding arithmetical error