fix $end of allocation range