minor fix to wrap handling as assertions