Make code run again after dp changes.