fixed more of the refresh thing