Fix create box throwing error