Properly setting offset and counts

@dnesbitt61 
Just assigning here might do the move for you. why even do the clear or the empty check?