fixed initial offsets bug by moving setOffsets to the init function