fixed a server crash due to faulty offsets.