Fix to layer temp (missing variable added)