Fix errors in production