Fix sorting and animation in Chrome