Fixed paths layers not always shown below other layers (fixes #912)