Fixes #174 - error function was declared two times.