Fix wrong behavior on set custom errors repeatedly.
Increment version to 0.4