Fixing dynamic section detection and animation