Avoid invalid argument. Closes #253