fixed error when using widget on non download pages. now it is safe.