invisible elements are now rendered in the correct order when set to visible