bugfix if layer.params undefined