lcavail entry bug corrected, now covered with tests.