Fixed shelving bug.