Fixed small offset bug