fix offset and timer