Corrected dependencies to standard Error types.