rest error fix