Fix error notice, closes #240