Bug with var layer