there is an error with window.finish at home