server side flashing
fix undefined error in clearTimeout and clearInterval