Fix flash between pages