Fixing result page never closing loading popup.