Fixed issue with ArrayList transferring on resize