Fixed flash bug