Improved hash anchor behaviour and fixed flickering issue