fixed a server crash due to faulty offsets. #1173