rest exception fix