Created attachment 684062 [details] Testcase The attached test case shows the problem. layerX/Y aren't spec'd but this behaviour is pretty unexpected.
Can't reproduce the problem, but I'm pretty sure I know where the problem is.
Created attachment 684072 [details] Testcase A fixed testcase. The original upload had unintentional local changes.