Fix error calls