fix weird flash issue