FIX explicit type for offset variable