Fix errors on require