Fixed change of error API