Unexpected errors. Trying to fix