fixed self.options.visibleLayers array problem