Fixes some errors.