Fix wrong arguments, delayed class update
Fix broken auto-refresh in Chrome