corrected bug with flash staying for 2 requests