fixed l_path_box to avoid path descarding; fixed l_get_path to avoid zero-memory-allocation exception