was throwing a warning when 0 was not a valid offset