Fix wrong offset