Fixed the flash effect to be the last-child insted of first-child