State Icon Scroll No Method Error (when disposing icons)

This script scrolls state icons if there's too many to show.
http://rmrk.net/index.php?topic=44751.0

Also Yanfly Battle Engine.
When choosing an attack to target enemy, the window with actors (and their state icons) disappears, as it does normally, but also this happens:
upload_2018-7-5_15-50-51.png

Even when they're not scrolling.
Help?

Original thread: https://forums.rpgmakerweb.com/threads/state-icon-scroll-no-method-error-when-disposing-icons.97290/