fixed element ordering problems