bugfix: layer order reversed on page reload