Fixed an issue with multiple boards that caused memory leaks and residual objects