Fixed flash bug, it didn't work on redirects