fixes auto refresh when media changes