Fixed some 500 errors.