Fix errors from warnings