fix for some slight bug that might occur when minimizing sections.