SIZE_MAX fix