fixed bug on show_layers_view