Fixed typo

`error` -> `err`