Fix readme example. Closes #877.