Add error buffer setter method
fix wrong error setter call