Fixed clear_layer_info() so it properly clears the global LAYER_INFO object.