Fixed problem we have been having with resetting res.