Made refresh work