fixed the stupid offset bug