Fixed some REST errors.