bugfix: fixed an incorrect error message. thanks aviramc for the patch in #290.