Closes #76 by refining the condition for the error