error js fixed in refresh