Fixed bug in the call of handleError method.