fixed error library

something changed in webapi or smth, had to change a little bit ;)