Fixed a bug in offsetbox

Offsetbox was using a local member before it was set.  This has been corrected.