Fixes the crash when changing the number of task banks