Fix errors on attempt to warn

Closes #81.