fix issue where tags got reordered in firefox