Fixed memory overwrite with chunk loading if case was anything less than optimal