fixed multiple cubes bug